package com.pdstudio.bean;

import com.google.gson.annotations.Expose;
import com.pdstudio.weather.R;

public class LiveIndex {
	
	@Expose
	private String indexKey;
	@Expose
	private String indexValue;
	private int mResourceId;

	public String getIndexKey() {
		return indexKey;
	}

	public void setIndexKey(String indexKey) {
		this.indexKey = indexKey;
		
	}

	public String getIndexValue() {
		return indexValue;
	}

	public void setIndexValue(String indexValue) {
		this.indexValue = indexValue;
	}

	public int getResourceId() {
		return mResourceId;
	}
	
	public void setResourceId(String indexKey){
		switch (indexKey) {
		default:
		case "舒适度":
			this.mResourceId = R.drawable.live_index_0;
			break;
		case "穿衣":
			this.mResourceId = R.drawable.live_index_1;
			break;
		case "晨练":
			this.mResourceId = R.drawable.live_index_2;
			break;
		case "洗车":
			this.mResourceId = R.drawable.live_index_3;
			break;
		case "紫外线":
			this.mResourceId = R.drawable.live_index_4;
			break;
		case "空气污染":
			this.mResourceId = R.drawable.live_index_5;
			break;
		}
	}
}
